package com.example.mapper;

import com.example.entity.Item;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ItemMapper {


    List<Item> selectAll_bus(Item item, Integer businessId);

    void addItem(Item item);

    void updateItem(Item item);


    List<Item> selectAll(Item item);

    @Select("select * from item where id=#{id}")
    Item selectById(Integer id);

    List<Item> selectPageByCid(Item item, Integer cid);
}
